Ext.define('App.management.pm.view.CollectionTaskFrame', {
    extend: 'App.management.pm.view.PmBaseFrame',
    alias: ['widget.CollectionTaskFrame'],
    requires: ['App.datacollection.dctask.view.CollectionTaskList', 'App.datacollection.finished.view.TaskResultList'],
    tabitems: [{
        xtype: 'CollectionTaskList',
        title: '采集任务'/*,
        extraParams: function () {
            return {'params.project.id_eq': (!Ext.isEmpty(app.project)) ? app.project.id : ''}
        }*/
    }, {
        xtype: 'TaskResultList',
        title: '运行中',
        extraParams: function () {
            return {'params.status_in':[1,2]}
        }
    }, {
        xtype: 'TaskResultList',
        title: '已完成',
        extraParams: function () {
            return {'params.status_notin': [1,2]}
        }
    }]
});